package example.pattern.cor;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Support s1 = new SpecialSupport("Special Support", 100, 200, 300);
		Support s2 = new RangeSupport("Range Support", 0, 100);
		Support s3 = new OddSupport("Odd Support");

		Trouble t1 = new Trouble(300);
		Trouble t2 = new Trouble(55);
		Trouble t3 = new Trouble(-55);
		Trouble t4 = new Trouble(400);

		s1.setNext(s2).setNext(s3);

		s1.support(t1);
		s1.support(t2);
		s1.support(t3);
		s1.support(t4);
	}

}
